package com.example.demotest.service;

import com.example.demotest.pojo.dto.AddressDto;

import java.util.List;

public interface IAddressService {
    List<AddressDto> getAllAddresses(Integer userId);

    int countByUserId(Integer userId);

    AddressDto updateAddress(AddressDto addressDto);

    void deleteAddress(Integer userId, Integer id);

    AddressDto addAddress(AddressDto addressDto);

    boolean isDuplicateAddress(AddressDto addressDto);
}
